﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Addphoto.aspx.vb" Inherits="LFC_photosharing.Addphoto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Hello
        <asp:LoginName ID="LoginName1" runat="server" />
        , want to add a new file?</p>
<p>
        PhotoName: <asp:TextBox ID="tb_PName" runat="server"></asp:TextBox>
    </p>
    <p>
        Category:&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="ddl_Category" 
            runat="server" DataSourceID="SqlDataSource1" DataTextField="Category" 
            DataValueField="Category">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:KOPConn %>" 
            ProviderName="<%$ ConnectionStrings:KOPConn.ProviderName %>" 
            SelectCommand="SELECT DISTINCT [Category] FROM [Photolist] ORDER BY [Category]">
        </asp:SqlDataSource>
    </p>
    <p>
        Location:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox ID="tb_Location" runat="server"></asp:TextBox>
    </p>
    <p>
        Picture:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:FileUpload ID="fup_Picture" runat="server" />
    </p>
    <p>
        <asp:Button ID="btn_Submit" runat="server" Text="Add New Photo" />
    </p>
</asp:Content>
